﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace StringVariables
{
    public class BoolVariableType : VariableType<bool>
    {

        public override bool IsValid(string value)
        {
            bool i;
            return bool.TryParse(value, out i);
        }

        protected override bool GetValueInternal(string value)
        {
            return bool.Parse(value);
        }
    }
}
